<template>
  <div>
<!--    对象 name---------对应路由配置中的name   -->
    <router-link :to="{name:'home'}">home</router-link> |
    <router-link :to="{name:'about'}">about</router-link>
    <router-view></router-view>
    <router-view name="Car"></router-view>
    <router-view name="Book"></router-view>
  </div>

</template>

<script>
export default {
  name: 'App',
}
</script>

<style lang="less">
</style>
